﻿using Dapper;

namespace Todo.Common.Models
{
    public record BaseDbEntity
    {
        [Key]
        [Column("id")]
        public int TodoId { get; set; }

        [Column("created_at")]
        [IgnoreInsert]
        [IgnoreUpdate]
        public DateTime CreatedAt { get; set; }

        [Column("updated_at")]
        public DateTime? UpdatedAt { get; set; }

        [Column("is_deleted")]
        public int Deleted { get; set; }

    }
}
